<?php

namespace Admin\Model;

use Think\Model;

class AdModel extends Model
{
    protected $_validate = array(
        array('title','require','广告标题不能为空！',self::MUST_VALIDATE ,'require',self::MODEL_BOTH), // 验证确认密码是否和密码一致
        array('url','require','广告链接不能为空！',self::MUST_VALIDATE ,'require',self::MODEL_BOTH), // 验证确认密码是否和密码一致
        array('desc','require','广告详细不能为空！',self::MUST_VALIDATE ,'require',self::MODEL_BOTH), // 验证确认密码是否和密码一致
    );
}